Klasse AttributeDifference<T>
java.lang.Object
com.inet.pdfc.generator.model.diff.AttributeDifference<T>
- Typparameter:
T- the type of the value which has a difference
- Alle implementierten Schnittstellen:
Serializable, Comparable<AttributeDifference<?>>
@JsonData
public abstract class AttributeDifference<T>
extends Object
implements Comparable<AttributeDifference<?>>, Serializable
Basic class for difference descriptions
- Seit:
- 3.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumThis enum is used to identify the runtime type of anAttributeDifference. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAttributeDifference(AttributeDifference.TYPE instanceType, T oldValue, T newValue, String messageKey) Creates an instance with an old and a new value and sets the instanceType and the messageKey -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintcompareTo(AttributeDifference<?> o) booleanReturns the type of this instance.Returns the log message for this differenceReturns the value of the compared property in the second documentReturns the descriptor for the new value, which is the formatted new value objectReturns the value of the compared property in the first documentReturns the descriptor for the old value, which is the formatted old value object
-
Konstruktordetails
-
AttributeDifference
public AttributeDifference(AttributeDifference.TYPE instanceType, T oldValue, T newValue, String messageKey) Creates an instance with an old and a new value and sets the instanceType and the messageKey- Parameter:
instanceType- the instance typeoldValue- the old valuenewValue- the new valuemessageKey- the message key- Seit:
- 3.0
-
-
Methodendetails
-
getMessage
Returns the log message for this difference- Gibt zurück:
- the log message for this difference, never
null - Seit:
- 3.0
-
equals
-
compareTo
- Angegeben von:
compareToin SchnittstelleComparable<T>
-
getOldValue
Returns the value of the compared property in the first document- Gibt zurück:
- the value of the compared property in the first document
- Seit:
- 3.0
-
getNewValue
Returns the value of the compared property in the second document- Gibt zurück:
- the value of the compared property in the second document
- Seit:
- 3.0
-
getInstanceType
Returns the type of this instance. This type is the only information about the actual type of the difference if the model was JSON serialized- Gibt zurück:
- the instanceType, not
null - Seit:
- 4.0
-
getOldValueDescriptor
Returns the descriptor for the old value, which is the formatted old value object- Gibt zurück:
- the descriptor for the old value
- Seit:
- 4.0
-
getNewValueDescriptor
Returns the descriptor for the new value, which is the formatted new value object- Gibt zurück:
- the descriptor for the new value
- Seit:
- 4.0
-